package com.adnaan.backend.entity;

import com.adnaan.backend.entity.dto.OptionDto;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

/**
 * author: adnaan
 * create: 2025-02-26 22:27
 * Description:
 */
@Data
@Tag(name = "识别记录表")
@TableName("recognize_record")
@EqualsAndHashCode(callSuper = true)
public class RecognizeRecord extends BaseEntity {

    @Schema(name = "上传图片")
    private String image;

    @Schema(name = "识别类型：0拍照1上传")
    private Integer type;

    @Schema(name = "识别状态 0未识别到1识别到")
    private Integer status;

    @Schema(name = "识别到的药材id")
    private Long result;

    @Schema(name = "识别到的药材名称")
    @TableField(exist = false)
    private String resultName;

    @Schema(name = "识别到的药材图片")
    @TableField(exist = false)
    private String resultImage;

    @Schema(title = "功效", description = "")
    @TableField(exist = false)
    private List<OptionDto> efficacy;

    @Schema(title = "禁忌", description = "")
    @TableField(exist = false)
    private HerbalTaboo taboo;

    @Schema(name = "用户ID")
    private Long userId;
}
